<!--===========================================================================================================================================================
	Player and Status
============================================================================================================================================================-->
<h3>
	Turn: <label class="text-primary">
		<?php echo 'Player '.$player['currentPlayer'] ?>
	</label> 
	(<label
		<?php if($status=='Attack')
				echo 'class="text-danger"';
			  if($status=='Defend')
				echo 'class="text-warning"';?>>
		<?php echo $status ?>
	</label>)
	<?php if ($shuffle['currentShuffle']==1): ?> <a href="<?php echo site_url('start') ?>"><button class="btn btn-warning btn-sm">Shuffle</button></a><?php endif ?>
</h3>
<!--===========================================================================================================================================================
	Player's Hand
============================================================================================================================================================-->
<?php 
	$array = array('hand' => $hand['currentHand']);
	$this->session->set_userdata('data', $array);
?>
<?php $index = 0 ?>
<ul id="playerHand" class="nav nav-pills">
<?php foreach ($hand['currentHand'] as $temp): ?>
	<li>
		<a id="playerHandLnk" <?php if ($option == 0): ?> href="<?php echo site_url('action/'.$index); ?>" <?php endif ?> >
			<img src="<?php echo base_url('assets/images/deck/'.$temp['img']) ?>">
		</a>
	</li>
<?php $index++ ?>
<?php endforeach ?>
</ul>
<br>
<!--===========================================================================================================================================================
	Player's choices
============================================================================================================================================================-->
<?php if ($status == 'Attack'): ?>
	<a href="<?php echo site_url('endattack/'.$player['currentPlayer']) ?>">
		<button class="btn btn-lg btn-danger" <?php if($attackCount < 1) echo 'disabled="disabled"'?>>End Attack</button>
	</a>
<?php endif ?>
<?php if ($status == 'Defend'): ?>
	<a href="<?php if($attackCount==0) echo site_url('acceptcards/'.$player['currentPlayer']); else echo site_url('backdown/'.$player['currentPlayer']) ?>">
		<button class="btn btn-lg btn-danger">Accept Cards</button>
	</a>
	<?php if ($option == 1): ?>
		<a href="<?php echo site_url('fightback/') ?>">
			<button class="btn btn-lg btn-success">Attack</button>
		</a>
		<?php endif ?>
<?php endif ?>

<script src="<?php echo base_url('assets/js/durak.js') ?>"></script>